import request from '@/api/http.js'

//获取质检方案列表
export const getQualityDetectionInspectionPlanList = (params) => {
    console.log('changeWorkStatus发送参数:', params)
    const query = new URLSearchParams(params).toString();
    return request.get(`api/QualityDetection/GetQualityDetectionInspectionPlanList?${query}`)
}

// 新增质检方案
export const addQualityDetectionInspectionPlan = (params) => {
    return request.post('api/QualityDetection/AddQualityDetectionInspectionPlan',params)
}

// 编辑质检方案
export const updateQualityDetectionInspectionPlan = (params) => {
    return request.post('api/QualityDetection/UpdateQualityDetectionInspectionPlan',params)
}

// 删除质检方案
export const deleteQualityDetectionInspectionPlan = (params) => {
    return request.post(`api/QualityDetection/DeleteQualityDetectionInspectionPlan/${params.id}`)
}
